﻿@model Sisocana.Core.Models.PersonaDesaparecidaFullModel


<h3> Person information </h3>

<fieldset>
    <legend>Name</legend>
    
    <div class="display-label">First Name: </div>
    <div class="display-field">@Model.nombre</div>

    <div class="display-label">Last Name: </div>
    <div class="display-field">@Model.apellido</div>
</fieldset>

<fieldset>
    <legend>Physical's characteristics</legend>
        
    <div class="display-label">Age: </div>
    <div class="display-field">@Model.edad</div>

    <div class="display-label">Sex: </div>
    <div class="display-field">
        @if (Model.sexo == "M")
        {
            <text>Male</text>
        }
        else
        {
            <text>Female</text>
        }
    </div>
</fieldset>

<fieldset>
    <legend>Photo</legend>
    <span class="resultImageContainer">
    @if (!Model.externalEntity)
    {
        <img class='photo' alt="Photograph not available" src="@Url.Action("image", "Person", new { id = Model.id })" />
    }
    else
    {
        <img class='photo' alt="Photograph not available" src="@Model.imageSrc" />
    }
    </span>
</fieldset>

@*@if (!Model.externalEntity)
{
    <fieldset>
        <legend>Photo</legend>

        <span class="resultImageContainer">
            <img class='photo' alt="Photograph not available" src="@Url.Action("image", "Person", new { id = Model.id })" />
        </span>
    </fieldset>
}
else
{
    <fieldset>
        <legend>Photo</legend>

        <span class="resultImageContainer">
            <img class='photo' alt="Photograph not available" src="@Model.imageSrc" />
        </span>
    </fieldset>
}*@

@Html.DisplayFor(model => model.HomeAddress)

<fieldset>
    <legend>Other information</legend>
    
    <div class="display-label">Mobile phone: </div>
    <div class="display-field">@Model.celular</div>    

    <div class="display-label">Description: </div>
    <div class="display-field">@Model.descripcion</div>
        
    <div class="display-label">Missing since: </div>
    <div class="display-field">@String.Format("{0:d}", Model.fecha)</div>
</fieldset>

